package com.insurance.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.insurance.service.dao.BidInvoiceDao;
import com.insurance.service.entity.BidInvoiceEntity;
import com.insurance.service.service.BidInvoiceService;
import com.insurance.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.insurance.common.utils.PageUtils;

/**
 * 发票service实现类
 */
@Service("bidInvoiceService")
public class BidInvoiceServiceImpl extends ServiceImpl<BidInvoiceDao, BidInvoiceEntity> implements BidInvoiceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BidInvoiceEntity> page = this.page(
                new Query<BidInvoiceEntity>().getPage(params),
                new QueryWrapper<BidInvoiceEntity>()
        );

        return new PageUtils(page);
    }

}